<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>入院咨询详情</title>
    <#include "/common/resource.ftl">
    <script type="text/javascript">
        $(function () {
            <#if (params.id)??>
                $.ajaxRequest({
                    url: '${params.contextPath}/web/hospitalConsult/query',
                    data: {id: "${params.id}"},
                    success: function (data) {
                        if (!data.success) {
                            $.message(data.message);
                            return;
                        }
                        var record = data.data;
                        for (var key in record) {
                            $("[field='" + key + "']").html(record[key]);
                        }
                        <#if (params.tag)??>
                            $("[field='sex']").html(record.sexStr);
                        <#else>
                        if (record.sex) {
                            var dictionaryOperator = DictionaryHelper.getDictionaryOperator("sex");
                            var sexName = dictionaryOperator.getDictionaryItemName(record.sex);
                            $("[field='sex']").html(sexName);
                        }
                        </#if>
                    }
                });
            </#if>
        });
    </script>
</head>
<body>
<div class="ui-table-div">
    <table class="layui-table ui-table">
        <tr>
            <th>咨询者</th>
            <td field="consultName">--</td>
        </tr>
        <tr>
            <th>与入院者关系</th>
            <td field="relationship">--</td>
        </tr>
        <tr>
            <th>入院者</th>
            <td field="elderName">--</td>
        </tr>
        <tr>
            <th>性别</th>
            <td field="sex">--</td>
        </tr>
        <tr>
            <th>年龄</th>
            <td field="age">--</td>
        </tr>
        <tr>
            <th>收入</th>
            <td field="income">--</td>
        </tr>
        <tr>
            <th>身体状况</th>
            <td field="health">--</td>
        </tr>
        <tr>
            <th>医保</th>
            <td field="medical">--</td>
        </tr>
        <tr>
            <th>户籍</th>
            <td field="household">--</td>
        </tr>
        <tr>
            <th>现居住地址</th>
            <td field="address">--</td>
        </tr>
        <tr>
            <th>联系电话</th>
            <td field="phone">--</td>
        </tr>
        <tr>
            <th>入院要求</th>
            <td field="remark">--</td>
        </tr>
    </table>
</div>
</body>

</html>
